package com.example.demo;

public class Test5 {

    public static void main(String args[]){
        int a[] = {10,6,4,3};
        for(int i= 0; i< a.length-1;i++){
            for(int j=0; j<a.length-1-i;j++){
                if(a[j]>a[j+1]){
                    int temp = a[j];
                    a[j] = a[j+1];
                    a[j+1] = temp;
                }
            }
        }
        for(int i=0 ; i<=a.length-1;i++){
            System.out.print(a[i]+",");
        }
    }
}
